package com.wolf.etl.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.wolf.provider.order.info.FieldInfo;
import com.wolf.provider.order.info.IdInfo;
import com.wolf.provider.order.info.TableInfo;

import java.util.Date;

/**
 * @author sdyang
 * @date 2019/11/5 16:38
 **/
@TableInfo(value = "etl_function")
public class EtlFunctionModel {

    @IdInfo
    private Long id;

    @FieldInfo(value = "dialect")
    private Integer dialect;

    @FieldInfo(value = "function_name")
    private String function_name;

    @FieldInfo(value = "param_num")
    private Integer param_num;

    @FieldInfo(value = "param_type_1")
    private String param_type_1;

    @FieldInfo(value = "param_type_2")
    private String param_type_2;

    @FieldInfo(value = "param_type_3")
    private String param_type_3;

    @FieldInfo(value = "param_type_4")
    private String param_type_4;

    @FieldInfo(value = "return_type")
    private String return_type;

    @FieldInfo(value = "remark")
    private String remark;

    @FieldInfo(value = "function_format")
    private String function_format;


    /**
     * 创建人
     */
    @FieldInfo(value = "creator")
    private String creator = "admin";

    /**
     * 创建时间
     */
    @FieldInfo(value = "create_time")
    private Date create_time = new Date();

    /**
     * 修改人
     */
    @JSONField(format = "yyyy-MM-dd")//数据库导出页面时json格式化
    @FieldInfo(value = "modified_person")
    private String modified_person;

    /**
     * 修改时间
     */
    @JSONField(format = "yyyy-MM-dd")//数据库导出页面时json格式化
    @FieldInfo(value = "modified_time")
    private Date modified_time;

    /**
     * 租户id
     */
    @FieldInfo(value = "client_id")
    private Long client_id = 100L;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getDialect() {
        return dialect;
    }

    public void setDialect(Integer dialect) {
        this.dialect = dialect;
    }

    public String getFunction_name() {
        return function_name;
    }

    public void setFunction_name(String function_name) {
        this.function_name = function_name;
    }

    public Integer getParam_num() {
        return param_num;
    }

    public void setParam_num(Integer param_num) {
        this.param_num = param_num;
    }

    public String getParam_type_1() {
        return param_type_1;
    }

    public void setParam_type_1(String param_type_1) {
        this.param_type_1 = param_type_1;
    }

    public String getParam_type_2() {
        return param_type_2;
    }

    public void setParam_type_2(String param_type_2) {
        this.param_type_2 = param_type_2;
    }

    public String getParam_type_3() {
        return param_type_3;
    }

    public void setParam_type_3(String param_type_3) {
        this.param_type_3 = param_type_3;
    }

    public String getParam_type_4() {
        return param_type_4;
    }

    public void setParam_type_4(String param_type_4) {
        this.param_type_4 = param_type_4;
    }

    public String getReturn_type() {
        return return_type;
    }

    public void setReturn_type(String return_type) {
        this.return_type = return_type;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public String getModified_person() {
        return modified_person;
    }

    public void setModified_person(String modified_person) {
        this.modified_person = modified_person;
    }

    public Date getModified_time() {
        return modified_time;
    }

    public void setModified_time(Date modified_time) {
        this.modified_time = modified_time;
    }

    public Long getClient_id() {
        return client_id;
    }

    public void setClient_id(Long client_id) {
        this.client_id = client_id;
    }

    public String getFunction_format() {
        return function_format;
    }

    public void setFunction_format(String function_format) {
        this.function_format = function_format;
    }
}
